gtkmain: Look up transient-for hierarchies to determine modality
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 22 Jun 2020 13:31:36 +0000 (15:31 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 23 Jun 2020 21:42:53 +0000 (23:42 +0200)
commit31b95ce47f214965323d980bd09a7a1bed65ed7e
tree764d77652a9f59291503fffe9563734ac08bc960
parent4fe608e4231f3c04a561220acf736d1128a770b3
gtkmain: Look up transient-for hierarchies to determine modality

Windows that are not modal, but are transient-for a modal window should
still be able to receive and handle events. Inspect the window hierarchy
in those cases, so these windows are handled just like widgets within
the modal dialog.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2851
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/2850
gtk/gtkmain.c